package com.fengxing.ams.web.facade.mouble.enrollment;


import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import com.fengxing.ams.web.facade.mouble.college.CollegeVO;

@Entity
@Table(name = "zyt_college_enrollment")
public class CollegeEnrollmentVO {
	@Id
	private Integer id             ;
	private Integer year           ;
	private String batch          ;
	private String subject        ;
	private Integer max_score      ;
	private Integer min_score      ;
	@Column(name="avg_score")
	private Integer avgScore      ;
	private Integer apply          ;
	private Integer enrolled       ;
	private Integer enroll_plan    ;
	@ManyToOne(cascade=CascadeType.ALL, fetch = FetchType.LAZY)
	@JoinColumn(name="college_id")
	@OrderBy("year")
	private CollegeVO collegeVO;
	
	public CollegeVO getCollegeVO() {
		return collegeVO;
	}
	public void setCollegeVO(CollegeVO collegeVO) {
		this.collegeVO = collegeVO;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getYear() {
		return year;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public String getBatch() {
		return batch;
	}
	public void setBatch(String batch) {
		this.batch = batch;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public Integer getMax_score() {
		return max_score;
	}
	public void setMax_score(Integer max_score) {
		this.max_score = max_score;
	}
	public Integer getMin_score() {
		return min_score;
	}
	public void setMin_score(Integer min_score) {
		this.min_score = min_score;
	}
	public Integer getAvgScore() {
		return avgScore;
	}
	public void setAvgScore(Integer avg_score) {
		this.avgScore = avg_score;
	}
	public Integer getApply() {
		return apply;
	}
	public void setApply(Integer apply) {
		this.apply = apply;
	}
	public Integer getEnrolled() {
		return enrolled;
	}
	public void setEnrolled(Integer enrolled) {
		this.enrolled = enrolled;
	}
	public Integer getEnroll_plan() {
		return enroll_plan;
	}
	public void setEnroll_plan(Integer enroll_plan) {
		this.enroll_plan = enroll_plan;
	}
	
}
